﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.Runtime.Serialization;
using ET.Score.Service.Enums;

namespace ET.Score.Service.Dtos
{
    /// <summary>
    /// 微信用户登录请求信息
    /// </summary>
    [DataContract]
    public class WxUserLoginInfoDto
    {
        /// <summary>
        /// 微信端登录
        /// </summary>
        [DataMember]
        public string OpenId { get; set; }
        /// <summary>
        /// 客户端种类，1：驾驶客户端，2：调度，3：站务，4：教员
        /// </summary>
        [DataMember]
        public LoginType ClientOperId { set; get; }

        /// <summary>
        /// 客户端Mac地址
        /// </summary>
        [DataMember]
        public string ClientMacIp { set; get; }

    }



    /// <summary>
    /// 电脑用户登录请求信息
    /// </summary>
    [DataContract]
    public class PcUserLoginInfoDto
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [DataMember]
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [DataMember]
        public string UserName { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [DataMember]
        public string PassWord { get; set; }
        /// <summary>
        /// 客户端种类，1：驾驶客户端 ，2：调度 ，3：站务 ，4：教员
        /// </summary>
        [DataMember]
        public LoginType ClientOperId { set; get; }

        /// <summary>
        /// 客户端Mac地址
        /// </summary>
        [DataMember]
        public string ClientMacIp { set; get; }

        /// <summary>
        /// 用户是否登录，登录：大于0，未登录：0
        /// </summary>
        [DataMember]
        public int IsLogin { set; get; }
    }
}
